//
//  VVideoUploadVC.m
//  vliour
//
//  Created by huangbolun on 2017/10/16.
//  Copyright © 2017年 huiian. All rights reserved.
//

#import "VVideoUploadVC.h"
#import "VVideoUploadToast.h"

@interface VVideoUploadVC ()

@property(nonatomic, strong) VVideoUploadToast *uploadToast;

@end

@implementation VVideoUploadVC

- (void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    [self.navigationController setNavigationBarHidden:YES];
}

- (void)viewWillDisappear:(BOOL)animated{
    [super viewWillDisappear:animated];
    [self.navigationController setNavigationBarHidden:NO];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [self setupUI];
    [self upLoadDate];
    self.uploadToast = [VVideoUploadToast shareToast];
    [self.uploadToast show];
}

- (void)setupUI{
    UIImageView *preImageView = [[UIImageView alloc] initWithImage:self.image];
    preImageView.clipsToBounds = YES;
    preImageView.contentMode = UIViewContentModeScaleAspectFill;
    [self.view addSubview:preImageView];
    preImageView.translatesAutoresizingMaskIntoConstraints = NO;
    [[preImageView.topAnchor constraintEqualToAnchor:self.view.topAnchor] setActive:YES];
    [[preImageView.bottomAnchor constraintEqualToAnchor:self.view.bottomAnchor] setActive:YES];
    [[preImageView.leftAnchor constraintEqualToAnchor:self.view.leftAnchor] setActive:YES];
    [[preImageView.rightAnchor constraintEqualToAnchor:self.view.rightAnchor] setActive:YES];
}

- (void)upLoadDate{
    //do something for upload
}


@end
